﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLayer.VDataEntities;
using BusinessLayer.DatabaseEntities;

namespace BusinessLayer
{
    public class LocationBusiness
    {
        public static VDataEntity[] GetProvinceList()
        {
            using (TrialManagementEntities trEntity = new TrialManagementEntities())
            {
                var provinceList = from province in trEntity.Province
                                   where province.IsActive == true
                                   select new VDataEntity() { ID = province.ID, Name = province.Name };
                return provinceList.ToArray();
            }
        }
    }
}
